package com.apes.scm.masterdata.product.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.product.model.OrientationDiagramMenu;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

public interface OrientationDiagramMenuRepository extends CustomRepository<OrientationDiagramMenu, Integer> {

    /***
     * 查询树形图（无条件）
     */
    @Query("select  new map(e.id as id,e.name as name,e.path as path) from OrientationDiagramMenu e order by e.id")
    List<Map> findTreeData();



}
